﻿<%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
         CodeFile="Items.aspx.cs" Inherits="Items" Title="&#1040;&#1090;&#1072;&#1084;&#1072;&#1085; &#1084;&#1077;&#1073;&#1077;&#1083;&#1100;: &#1050;&#1072;&#1090;&#1072;&#1083;&#1086;&#1075; &#1090;&#1086;&#1074;&#1072;&#1088;&#1086;&#1074;" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="pagetitle">
        &#1050;&#1072;&#1090;&#1072;&#1083;&#1086;&#1075; &#1090;&#1086;&#1074;&#1072;&#1088;&#1086;&#1074;</div>
    <div id="content-container-three-column">
        <!--CONTENT SIDE 1 COLUMN-->
        <div id="content-side1-three-column">
            <h2>
                <a href="Items.aspx">&#1042;&#1089;&#1077; &#1090;&#1086;&#1074;&#1072;&#1088;&#1099;</a></h2>
<%--            <asp:TreeView ID="TreeViewCategories" runat="server" ShowLines="True" ExpandDepth="0"
                LineImagesFolder="~/TreeLineImages" NodeIndent="0" LeafNodeStyle-CssClass="LeafNodesStyle"
                CssClass="TreeView" NodeStyle-CssClass="NodeStyle" ParentNodeStyle-CssClass="ParentNodeStyle"
                RootNodeStyle-CssClass="RootNodeStyle" SelectedNodeStyle-CssClass="SelectedNodeStyle"
                LeafNodeStyle-Width="100%" NodeStyle-Width="100%" ParentNodeStyle-Width="100%"
                RootNodeStyle-Width="100%" SelectedNodeStyle-Width="100%">
                <Nodes>
                    <asp:TreeNode Text="All Items" SelectAction="Expand" PopulateOnDemand="True" Value="All Items" />
                </Nodes>
                <HoverNodeStyle ForeColor="RoyalBlue" />
                <SelectedNodeStyle BackColor="Transparent" CssClass="SelectedNodeStyle" Width="100%" />
                <RootNodeStyle Font-Bold="True" Font-Size="Larger" HorizontalPadding="5px" CssClass="RootNodeStyle"
                    Width="100%" />
                <ParentNodeStyle CssClass="ParentNodeStyle" Width="100%" />
                <LeafNodeStyle CssClass="LeafNodesStyle" Width="100%" />
                <NodeStyle CssClass="NodeStyle" Width="100%" />
            </asp:TreeView>--%>
        </div>
        <!--CENTER COLUMN-->
        <div id="content-main-three-column">
            <%--<h2>
                <asp:Label ID="LabelCurrentCategory" runat="server" Visible="true" Text=""></asp:Label></h2>
            <asp:Panel ID="PanelCategories" runat="server" Visible="true">

            </asp:Panel>
            <!-- Child Items -->
            <asp:Panel ID="PanelItems" runat="server" Visible="false">

            </asp:Panel>--%>
            
            <asp:LoginView ID="LoginView1" runat="server">
                <AnonymousTemplate>
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="LinqDataSource1" 
                    Width="441px" AllowPaging="True" CssClass="itemsTable">
                        <Columns>
                            <asp:BoundField DataField="Category" HeaderText="Category" 
                                SortExpression="Category" ReadOnly="True" />
                            <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" 
                                ReadOnly="True" />
                            <asp:BoundField DataField="Quantity" HeaderText="Quantity" 
                                SortExpression="Quantity" ReadOnly="True" />
                            <asp:BoundField DataField="Price" HeaderText="Price" SortExpression="Price" 
                                ReadOnly="True" />
                            <asp:BoundField DataField="Currency" HeaderText="Currency" 
                                SortExpression="Currency" ReadOnly="True" />
                        </Columns>
                    </asp:GridView>
                    <asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="AtamandbClassesDataContext" 
                    TableName="PRODUCT_CATALOGUEs" Select="new (Category, Name, Quantity, Price, Currency)">
                    </asp:LinqDataSource>                    
                </AnonymousTemplate>
                <LoggedInTemplate>
                    <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" DataSourceID="LinqDataSource2" 
                    Width="441px" AllowPaging="True" CssClass="itemsTable">
                        <Columns>
                            <asp:BoundField DataField="Category" HeaderText="Category" 
                                SortExpression="Category" ReadOnly="True" />
                            <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" 
                                ReadOnly="True" />
                            <asp:BoundField DataField="Quantity" HeaderText="Quantity" 
                                SortExpression="Quantity" ReadOnly="True" />
                            <asp:BoundField DataField="Price" HeaderText="Price" SortExpression="Price" 
                                ReadOnly="True" />
                            <asp:BoundField DataField="Currency" HeaderText="Currency" 
                                SortExpression="Currency" ReadOnly="True" />
                        </Columns>
                    </asp:GridView>
                    <asp:LinqDataSource ID="LinqDataSource2" runat="server" ContextTypeName="AtamandbClassesDataContext" 
                    TableName="PRODUCT_CATALOGUEs" Select="new (Category, Name, Quantity, Price, Currency)">
                    </asp:LinqDataSource>   
                </LoggedInTemplate>
                <RoleGroups>
                  
                    <asp:RoleGroup Roles="marketolog">
                        <ContentTemplate>
                            <asp:GridView ID="GridView3" runat="server" AutoGenerateColumns="False" DataSourceID="LinqDataSource3" 
                    Width="441px" AllowPaging="True" CssClass="itemsTable">
                        <Columns>
                            <asp:BoundField DataField="Category" HeaderText="Category" SortExpression="Category" />
                            <asp:BoundField DataField="Code" HeaderText="Code" SortExpression="Code" />
                            <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
                            <asp:BoundField DataField="Quantity" HeaderText="Quantity" SortExpression="Quantity" />
                            <asp:BoundField DataField="Price" HeaderText="Price" SortExpression="Price" />
                            <asp:BoundField DataField="Currency" HeaderText="Currency" SortExpression="Currency" />
                        </Columns>
                    </asp:GridView>
                    <asp:LinqDataSource ID="LinqDataSource3" runat="server" ContextTypeName="AtamandbClassesDataContext" 
                    TableName="PRODUCT_CATALOGUEs">
                    </asp:LinqDataSource>       
                        
                        </ContentTemplate>
                    </asp:RoleGroup>
                </RoleGroups>
            </asp:LoginView>
            
            
            
        </div>
        <!--CONTENT SIDE 2 COLUMN-->
        <div id="content-side2-three-column">
            <h3 class="small">&#1052;&#1086;&#1076;&#1077;&#1083;&#1080;&#1088;&#1086;&#1074;&#1072;&#1085;&#1080;&#1077; &#1080;&#1085;&#1090;&#1077;&#1088;&#1100;&#1077;&#1088;&#1072;</h3>
            <p><a href="visualisation/Gedit.rar" target="_blank">2D-&#1080;&#1085;&#1090;&#1077;&#1088;&#1100;&#1077;&#1088;</a></p>
            <p><a href="visualisation/data.xml" target="_blank">&#1050;&#1072;&#1090;&#1072;&#1083;&#1086;&#1075; &#1084;&#1086;&#1076;&#1077;&#1083;&#1077;&#1081;</a></p>
            <p>&#1044;&#1083;&#1103; &#1089;&#1082;&#1072;&#1095;&#1080;&#1074;&#1072;&#1085;&#1080;&#1077; &#1076;&#1072;&#1085;&#1085;&#1086;&#1075;&#1086; &#1087;&#1088;&#1080;&#1083;&#1086;&#1078;&#1077;&#1085;&#1080;&#1103;, &#1074;&#1099;&#1073;&#1077;&#1088;&#1080;&#1090;&#1077; &#1080;&#1085;&#1090;&#1077;&#1088;&#1077;&#1089;&#1091;&#1102;&#1097;&#1091;&#1102; &#1042;&#1072;&#1089; &#1089;&#1089;&#1099;&#1083;&#1082;&#1091;.
            &#1045;&#1089;&#1083;&#1080; &#1085;&#1077; &#1091;&#1076;&#1072;&#1077;&#1090;&#1089;&#1103; &#1089;&#1086;&#1093;&#1088;&#1072;&#1085;&#1080;&#1090;&#1100; &#1092;&#1072;&#1081;&#1083;, &#1085;&#1072;&#1078;&#1084;&#1080;&#1090;&#1077; &#1087;&#1088;&#1072;&#1074;&#1086;&#1081; &#1082;&#1085;&#1086;&#1087;&#1082;&#1091; &#1084;&#1099;&#1096;&#1080; &#1080; &#1074;&#1099;&#1073;&#1080;&#1088;&#1080;&#1090;&#1077; &#1087;&#1091;&#1085;&#1082;&#1090; "&#1057;&#1086;&#1093;&#1088;&#1072;&#1085;&#1080;&#1090;&#1100; &#1082;&#1072;&#1082;..."</p>
        </div>
        <div class="clear"></div>
    </div>
</asp:Content>
